﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/AdminIndexMaster.master" AutoEventWireup="true" CodeFile="Admin_ProductAttributes.aspx.cs" Inherits="Admin_Admin_ProductAttributes" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="adminheading">
        <tr>
            <th valign="middle" class="cpane">
                商品类型管理
            </th>
            <td align="right">
            </td>
            <td class="rtdw">
            </td>
        </tr>
    </table>
    <table class="nick">
        <tr>
        <td class="tit" style="text-align:left;">
                    按商品类型名称查询：
            <asp:TextBox ID="TextBox_Type" runat="server"></asp:TextBox>
            &nbsp;<asp:Button ID="Button_Search" runat="server" Text=" 查 询 " 
                        onclick="Button_Search_Click" />
            </td>
            <td class="tit" style="text-align:right;">
                <a href="Admin_ProductAttributesEdit.aspx?Model=_AddType">
                    <img style="border: 0px;" src="tpl/img/ico/add.gif" />新建商品类型</a>
            </td>
        </tr>
    </table>
    <div id="product_history">
        <asp:GridView ID="GridView_Type" runat="server" AutoGenerateColumns="False" CssClass="adminlist"
            OnRowCommand="GridView_Type_RowCommand">
            <Columns>
                <asp:TemplateField HeaderText="商品类型名称">
                    <ItemTemplate>
                        <asp:Label ID="Label_Type" runat="server" Text='<%# Eval("Attributes_Type") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="属性数">
                    <ItemTemplate>
                        <asp:Label ID="Label_Count" runat="server" Text='<%# Eval("Attributes_Count") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="操作">
                    <ItemTemplate>
                        <a href="Admin_ProductAttributesList.aspx?Type=<%# Eval("Attributes_Type") %>">属性列表 </a>|
                        <asp:LinkButton ID="LinkButton_Edit" CommandName="_Edit" CommandArgument='<%# Eval("Attributes_Type") %>'
                            runat="server" Text="编辑" />
                        |
                        <asp:LinkButton ID="LinkButton_Delete" OnClientClick="return confirm('确定要删除么?')"
                            CommandName="_Delete" CommandArgument='<%# Eval("Attributes_Type") %>' runat="server"
                            Text="删除" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <EmptyDataTemplate>
                <tr>
                    <th scope="col">
                        商品类型名称
                    </th>
                    <th scope="col">
                        编辑
                    </th>
                    <th scope="col">
                        删除
                    </th>
                </tr>
                <tr>
                    <td colspan="3" style="text-align: center; line-height: 20px;">
                        暂无记录！
                    </td>
                </tr>
            </EmptyDataTemplate>
        </asp:GridView>
    </div>
</asp:Content>
